package com.test1.mybatis.study.service;

import com.test1.mybatis.study.mapper.UserInfoMapper;
import com.test1.mybatis.study.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {
    @Autowired
    private UserInfoMapper userInfoMapper;


    public List<UserInfo> queryAllUser() {
        return userInfoMapper.queryUserList();
    }
}
